<div id="container">
	<div id="sidebar">
		<ul class="sideNav">
			<li><a href="/adminka/qafisha/add" class="active">Добавить событие</a></li>
				<li><a href="/adminka/qafisha/addfilm">Добавить фильм</a></li>
			<li><a href="/adminka/qafisha/list">Редактировать афишу</a></li>
		</ul>
	</div>

<div id="main">

<div id="form" class="test">
	<form method="post" action="/adminka/qafisha/update" id="test" name="test" enctype="multipart/form-data">

		<p><label for="npicture">Картинка события</label></p>
		<?php echo '<img src="/images/events/'.$event['image'].'" width="70" height="100" alt="" />'; ?>
		<input type='file' name='events[image]' value=''>
		<p><label for="nhesder">Название</label></p>
		<p><input type="text" name="title" value="" /></p>

		<p><label for="ntext">Описние </label></p>
		<textarea name="area2" style="width: 100%;" name="text">
			<?php echo $event['text']; ?>
		</textarea>
		<script type="text/javascript">
			bkLib.onDomLoaded(function() { nicEditors.allTextAreas() });
		</script>
		<p><label for="typenews">Тип события</label></p>
		<select name="type">

		<!-- Выводим типы новостей -->
		<?php foreach( $type as $key )
		{
			echo "<option value=".$key->name_of_event_tag.">".$key->name_of_event_tag."</option>";
		}

		?>		
		</select>


			<p><label for="category">начало события</label></p>
			<select name="date_Y">

				<option value="2010" selected="selected">2010</option>
				<option value="2011" selected="selected">2011</option>
				<option value="2012" selected="selected">2012</option>
				<option value="2013" selected="selected">2013</option>
				<option value="2014" selected="selected">2014</option>
				<option value="2015" selected="selected">2015</option>
				<option value="2016" selected="selected">2016</option>
				<option value="2017" selected="selected">2017</option>
				<option value="2018" selected="selected">2018</option>
				<option value="2019" selected="selected">2019</option>
				<option value="2020" selected="selected">2020</option>
			</select>
			<select name="date_M">
				<option value="1" selected="selected">Январь</option>
				<option value="2" selected="selected">Февраль</option>
				<option value="3" selected="selected">Март</option>
				<option value="4" selected="selected">Апрель</option>
				<option value="5" selected="selected">Май</option>
				<option value="6" selected="selected">Июнь</option>
				<option value="7" selected="selected">Июль</option>
				<option value="8" selected="selected">Август</option>
				<option value="9" selected="selected">Сентябрь</option>
				<option value="10" selected="selected">Октябрь</option>
				<option value="11" selected="selected">Ноябрь</option>
				<option value="12" selected="selected">Декабрь</option>
			</select>

				<select name="date_D">
				<?php  for ( $i=1; $i <32 ; $i++ )
				{ 
					echo "<option value='".$i."' selected='selected'>".$i."</option>";
				} ?>

			</select><br /><br />



			<p><label for="category">Конец события</label></p>
			<select name="date_Y_end">

				<option value="2010" selected="selected">2010</option>
				<option value="2011" selected="selected">2011</option>
				<option value="2012" selected="selected">2012</option>
				<option value="2013" selected="selected">2013</option>
				<option value="2014" selected="selected">2014</option>
				<option value="2015" selected="selected">2015</option>
				<option value="2016" selected="selected">2016</option>
				<option value="2017" selected="selected">2017</option>
				<option value="2018" selected="selected">2018</option>
				<option value="2019" selected="selected">2019</option>
				<option value="2020" selected="selected">2020</option>
			</select>
			<select name="date_M_end">
				<option value="1" selected="selected">Январь</option>
				<option value="2" selected="selected">Февраль</option>
				<option value="3" selected="selected">Март</option>
				<option value="4" selected="selected">Апрель</option>
				<option value="5" selected="selected">Май</option>
				<option value="6" selected="selected">Июнь</option>
				<option value="7" selected="selected">Июль</option>
				<option value="8" selected="selected">Август</option>
				<option value="9" selected="selected">Сентябрь</option>
				<option value="10" selected="selected">Октябрь</option>
				<option value="11" selected="selected">Ноябрь</option>
				<option value="12" selected="selected">Декабрь</option>
			</select>

				<select name="date_D_end">
				<?php  for ( $i=1; $i <32 ; $i++ )
				{ 
					echo "<option value='".$i."' selected='selected'>".$i."</option>";
				} ?>

			</select><br /><br />
			<?php echo'<input type="hidden" name="id" value="'.$_GET["id"].'" />';?>
		<input type="submit" name="test" value="Сохранить" /><br />


	</form>
</div>

</div>